package com.aaa.controller;

import com.aaa.entity.Flim_Order;
import com.aaa.entity.Product;
import com.aaa.service.Flim_OrderService;
import com.aaa.util.TableData;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("/Flim_Order")
public class Flim_OrderController {
    @Autowired
    private Flim_OrderService flim_orderService;
    @RequestMapping("/toList")
    public String toList(){
        return "flim_order/list";
    }
    @RequestMapping("/listData")
    @ResponseBody
    public TableData<Flim_Order> listData(@RequestParam(defaultValue = "") String keyword, Integer page, Integer limit){
        TableData<Flim_Order> page1 = flim_orderService.page(keyword, page, limit);
        return page1;
    }
}
